* lisp/progmodes/project.el: Don't run modes from .dir-locals.el.
authorJuri Linkov <juri@linkov.net>
Thu, 14 Mar 2024 17:37:44 +0000 (19:37 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 14 Mar 2024 17:37:44 +0000 (19:37 +0200)
commitbd6b64e0a8856a735b484f0482af0e937eb585d3
tree9fa5aef26e40a9e983323b06789f9c4a4ce743bc
parentf3deaa117acfc975be3edbe8461b18fc29b4adf0
* lisp/progmodes/project.el: Don't run modes from .dir-locals.el.

(project--value-in-dir): Use 'alist-get' on 'file-local-variables-alist'
to avoid calling 'hack-local-variables-apply' via
'hack-dir-local-variables-non-file-buffer' because it might enable
undesirable modes such as flyspell-mode in a temporary buffer (bug#69740).
lisp/progmodes/project.el